﻿using SocketCore.Common.Event;

namespace SocketCore.Common.Config;

public class SocketConfig
{
    /// <summary>
    /// 端口
    /// 默认值:23560
    /// </summary>
    public int Port { get; set; } = 23560;

    /// <summary>
    /// 接收缓冲区大小（字节）
    /// Socket接收数据时使用的缓冲区大小
    /// 默认值: 1024 字节
    /// </summary>
    public int ReceiveBufferSize { get; set; } = 1024;

    /// <summary>
    /// 通知事件
    /// </summary>
    public SocketEventHub EventHub { get; set; } = new SocketEventHub();
}